﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CategoryCustomizedV2.aspx.cs"
    Inherits="EntLibEC.View.Basic.CategoryCustomizedV2" %>

<%@ Register Src="../Cmn/Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<%@ Register Src="../Cmn/Category.ascx" TagName="Category" TagPrefix="uc2" %>
<%@ Register Src="../Cmn/Category12.ascx" TagName="Category12" TagPrefix="uc3" %>
<%@ Register Src="../Cmn/NewCategory12.ascx" TagName="NewCategory12" TagPrefix="uc4" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>定制前台网站产品目录</title>

    <script language="javascript" src="../Cmn/EntLibEC.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <uc1:Menu ID="Menu1" runat="server" />
        <br />
        <table class="tbl" align="center" cellpadding="5">
            <tr>
                <td class="title">
                    产品目录结构
                </td>
            </tr>
            <tr>
                <td>
                    产品目录：<uc3:Category12 ID="catOrignal" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;<img alt="" src="../Images/common/ball.gif" style="width: 8px; height: 8px" />
                    如果您第一次设置前台产品的目录结构，建议您使用【初始化前台目录结构】按钮，将当前的产品目录结构一次性全部导入。
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%">
                        <tr>
                            <td>
                                <asp:Button ID="btnQuery" runat="server" OnClick="btnQuery_Click" Text="查  询" />
                            </td>
                            <td style="text-align: right">
                                <asp:Button ID="btnInitializeCustomizedCategory" runat="server" ForeColor="#FF3300"
                                    OnClick="btnInitializeCustomizedCategory_Click" Text="初始化前台目录结构" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    当前选择的目录类型：<asp:Label ID="lblCategoryType" runat="server" ForeColor="#0000CC"></asp:Label>
                </td>
            </tr>
        </table>
        <div style="text-align: center; margin: 5px;">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" SkinID="GridView"
                DataKeyNames="SysNo">
                <Columns>
                    <asp:TemplateField HeaderText="请选择">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelect" runat="server"></asp:CheckBox></ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="SysNo" HeaderText="系统编号" />
                    <asp:BoundField DataField="CategoryID" HeaderText="目录ID" />
                    <asp:BoundField DataField="CategoryName" HeaderText="目录名称" />
                    <asp:BoundField DataField="StatusName" HeaderText="状态" />
                </Columns>
            </asp:GridView>
        </div>
        <table class="tbl" align="center" cellpadding="5">
            <tr>
                <td valign="top">
                    指定要导入的前台目录：<uc4:NewCategory12 ID="destCategory" runat="server" />
                </td>
            </tr>
            <tr>
                <td valign="top">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <asp:Label ID="lblMessage" runat="server" EnableViewState="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <asp:Button ID="btnImport" runat="server" Text="导入选择的目录" OnClick="btnImport_Click" />
                    <asp:Button ID="btnImportAll" runat="server" Text="全部导入上述目录" OnClick="btnImportAll_Click" />
                </td>
            </tr>
            <tr>
                <td valign="top">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td valign="top" class="title">
                    定制的产品目录
                </td>
            </tr>
            <tr>
                <td valign="top">
                    定制的前台产品目录：<uc4:NewCategory12 ID="catCustomized" runat="server" />
                </td>
            </tr>
            <tr>
                <td valign="top">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <asp:Button ID="btnQuery2" runat="server" Text="查  询" OnClick="btnQuery2_Click" />
                </td>
            </tr>
            <tr>
                <td valign="top">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td valign="top">
                    当前选择的目录类型：<asp:Label ID="lblCategoryType2" runat="server" ForeColor="#0000CC"></asp:Label>
                </td>
            </tr>
        </table>
        <div style="text-align: center; margin: 5px;">
            <asp:GridView ID="GridView2" runat="server" SkinID="GridView" AutoGenerateColumns="False">
                <Columns>
                    <asp:BoundField DataField="SysNo" HeaderText="新系统编号" />
                    <asp:BoundField DataField="OriginCategorySysNo" HeaderText="原始系统编号" />
                    <asp:BoundField DataField="CategoryName" HeaderText="目录名称" />
                    <asp:BoundField DataField="URL" HeaderText="链接地址" />
                    <asp:BoundField DataField="StatusName" HeaderText="状态" />
                    <asp:BoundField DataField="Operation" HeaderText="操作" HtmlEncode="False" />
                </Columns>
            </asp:GridView>
        </div>
        <br />
        <br />

    </div>
    </form>
</body>
</html>
